package com.chang.DI;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ResourceTest {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("resourceBean.xml");
        ResourceBean bean = context.getBean(ResourceBean.class);
        bean.parse(); // 用配置文件的方式进行资源注入,不用在代码里写死.但是感觉作用还是不大
    }
}
